package com.itcast.staticdemo.Demo04;

/*
要写注释哦!!!
*/
public class Student {
    //私有化构造函数
    private Student() {
    }

    //创建Student的对象并私有和静态static：保证系统只创建一个对象  private：保证Student的地址不被修改
    private static Student student = new Student();

    public static Student getStudent() {
        return student;
    }
}
